package cn.zyq.ykb.service.user;

import cn.zyq.ykb.beans.user.PosUser;
import cn.zyq.ykb.system.common.PageParam;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * pos用户Service接口
 *
 * @author SystemAuth
 * @date 2024-03-06
 */
public interface PosUserService {
    /**
     * 查询pos用户
     *
     * @param posUserID pos用户主键
     * @return pos用户
     */
    PosUser selectPosUserByPosUserID(Integer posUserID);

    /**
     * 查询pos用户
     *
     * @param serviceID pos用户业务ID
     * @return pos用户
     */
    PosUser selectPosUserByServiceID(String serviceID);

    /**
     * 查询pos用户列表
     *
     * @param pageParam
     * @return pos用户集合
     */
    PageInfo<PosUser> selectPosUserList(PageParam pageParam);

    /**
     * 查询pos用户列表
     *
     * @param pageParam
     * @return pos用户集合
     */
    List<PosUser> selectPosUserAllList(PageParam pageParam);

    /**
     * 新增pos用户
     *
     * @param param pos用户
     * @return 结果
     */
    int insertPosUser(PosUser param);

    /**
     * 修改pos用户
     *
     * @param param pos用户
     * @return 结果
     */
    int updatePosUser(PosUser param);

    /**
     * 批量删除pos用户
     *
     * @param posUserIDs 需要删除的pos用户主键集合
     * @return 结果
     */
    int deletePosUserByPosUserIDs(Integer[] posUserIDs);

    /**
     * 删除pos用户信息
     *
     * @param posUserID pos用户主键
     * @return 结果
     */
    int deletePosUserByPosUserID(Integer posUserID);
}
